import requests

class EmpSaveApi(object):
    # 登录方法
    @classmethod
    def save(cls, header, json_data):
        resp = requests.post(url="http://localhost:8080/springbooth42y92e1/yonghu/save",
                             headers=header,
                             json=json_data)

        return resp


# if __name__ == '__main__':
#     resp = AdministratorLoginApi.login({"username": "admin", "password": "admin"})
#     print(resp.json())